package com.msw.jcwapi.wb.project.controller;


import com.msw.jcwapi.wb.project.service.ISysProjectService;
import com.msw.jcwapi.common.result.Result;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2025-03-17
 */
@RestController
@RequestMapping("/syspro")
public class SysProjectController {

    @Resource
    private ISysProjectService iSysProjectService;
//    查询所有的工程
    @GetMapping("/list")
    public Result list() {

        return Result.ok(iSysProjectService.list());
    }


}
